package enum_package;

enum CoffeeSize
{
	Small(50,10.00),
	Medium(75,15.00),
	Large(100,20.00){
		public String getCoffeeBrand()
		{
			return "Brue";
		}
	};
	
	CoffeeSize(int ml,double rupee)
	{
		this.size = ml;
		this.price = rupee;
	}
	public String getCoffeeBrand()
	{
		return "Nestle";
	}
	
	private int size;
	private double price;
	
	 public String toString(){
         return name()+": Size:" +size +"ml, Price :"+price+" Rs,";
       }
}
public class test4Enum 
{
	
	public static void main(String[] args) 
	{
		CoffeeSize cs = CoffeeSize.Small;
		System.out.println(cs+" Brand: "+cs.getCoffeeBrand());
		
		cs = CoffeeSize.Large;
		System.out.println(cs+" Brand: "+cs.getCoffeeBrand());
		
	}

}
